Skip to content

[vector.capacity] vector::reserve is tutorial-like#9159

Merged
tkoeppe merged 1 commit into
cplusplus:mainfrom
notdanhan:vector_capacity_reserve_fix
Jul 16, 2026
Merged

[vector.capacity] vector::reserve is tutorial-like#9159
tkoeppe merged 1 commit into
cplusplus:mainfrom
notdanhan:vector_capacity_reserve_fix

Conversation

@notdanhan

Copy link
Copy Markdown
Contributor

Fixes #7401

Comment thread source/containers.tex
\tcode{capacity()}
is greater or equal to the argument of
\tcode{reserve}
if reallocation happens; and equal to the previous value of

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find the wording here to be a bit obtuse, but that's for another time.

@eisenwave eisenwave added the P3-Other Triaged issue not in P1 or P2 label Jun 21, 2026
@tkoeppe
tkoeppe merged commit 19f519e into cplusplus:main Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3-Other Triaged issue not in P1 or P2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[vector.capacity] vector::reserve is tutorial-like

4 participants